scsi: hisi_sas: Fix spin lock management in slot_index_alloc_quirk_v2_hw()
authorJohn Garry <john.garry@huawei.com>
Tue, 16 Oct 2018 15:00:36 +0000 (23:00 +0800)
committerSalvatore Bonaccorso <carnil@debian.org>
Thu, 18 Jul 2019 22:23:17 +0000 (23:23 +0100)
commit0db3d2910c3c6cd4caa4c4e5ebf9eba867da6490
treefae0ea5eb5d46aaf35a285555df8e97018ec2f22
parenta2aab42406fd40929a334ad59dff0cd305b802e4
scsi: hisi_sas: Fix spin lock management in slot_index_alloc_quirk_v2_hw()

Currently a spin_unlock_irqrestore() call is missing on the error path,
so add it.

Reported-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Gbp-Pq: Topic bugfix/arm64/huawei-taishan
Gbp-Pq: Name 0008-scsi-hisi_sas-Fix-spin-lock-management-in-slot_index.patch
drivers/scsi/hisi_sas/hisi_sas_v2_hw.c